package model;

public class Person extends Resource{
	
	
	private String identityNumber=null;
	private Integer salary ;
	
	public Integer getSalary() {
		return salary;
	}

	public void setSalary(Integer salary) {
		this.salary = salary;
	}

	public Person(Integer personId,String name, String identityNumb){
		super(personId,name);
		this.identityNumber= identityNumb;
		
	}
	
	public Person(){
		super();
	}


	public String getIdentityNumber() {
		return identityNumber;
	}

	public void setIdentityNumber(String identityNumber) {
		this.identityNumber = identityNumber;
	}

	@Override
	public String toString() {
		System.out.println(super.toString());
		return "Person [identityNumber=" + identityNumber + ", salary="
				+ salary + "]";
	}

	@Override
	public boolean equals(Object arg0) {
		// TODO Auto-generated method stub
		return super.equals(arg0);
	}
	
	

}
